%%
%% referenced from doc
%%

-module(recoptimise).
-record(rec, {a, b, c}).

-export([t1/1, t1N/1, t2/1, t2N/1, t3/1, t3N/1]).

t1(A) ->
    #rec{a = _} = A.
t1N(A) ->
    #rec{a = _} = A,
    #rec{a = _} = A,
    #rec{a = _} = A,
    #rec{a = _} = A,
    #rec{a = _} = A,
    #rec{a = _} = A,
    #rec{a = _} = A,
    #rec{a = _} = A,
    #rec{a = _} = A.

t2(A) ->
    #rec{a = X} = A.
t2N(A) ->
    #rec{a = X} = A,
    #rec{a = X} = A,
    #rec{a = X} = A,
    #rec{a = X} = A,
    #rec{a = X} = A,
    #rec{a = X} = A,
    #rec{a = X} = A,
    #rec{a = X} = A,
    #rec{a = X} = A.


t3(A) ->
    #rec{a = X} = A.
t3N(A) ->
    #rec{a = X1} = A,
    #rec{a = X2} = A,
    #rec{a = X3} = A,
    #rec{a = X4} = A,
    #rec{a = X5} = A,
    #rec{a = X6} = A,
    #rec{a = X7} = A,
    #rec{a = X8} = A,
    #rec{a = X9} = A.
